﻿using Hangfire.Annotations;
using Hangfire.Dashboard;

namespace lingopen.Jabil.Server.Core
{
    public class BasicAuthAuthorizationFilter : IDashboardAuthorizationFilter
    {
        //public bool Authorize([NotNull] DashboardContext context)
        //{
        //    // In case you need an OWIN context, use the next line, `OwinContext` class
        //    // is the part of the `Microsoft.Owin` package.
        //    var owinContext = new OwinContext(context.GetOwinEnvironment());

        //    // Allow all authenticated users to see the Dashboard (potentially dangerous).
        //    return owinContext.Authentication.User.Identity.IsAuthenticated;
        //}
        public bool Authorize([NotNull] DashboardContext context)
        {
            throw new System.NotImplementedException();
        }
    }
}
